<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<form:form name="frmUser" action="user.save" method="post" class="form-horizontal" role="form" modelAttribute="utilisateur">
	<form:input path="id" type="hidden" name="id" value="${utilisateur.id}" />
	
   	<div class="form-group">
   		<label class="col-sm-2 control-label" for="nom">Nom</label>
   		<div class="col-sm-10">
			<form:input path="nom" placeholder="Nom" required="true" class="form-control" value="${utilisateur.nom}"/>
		</div>
	</div>
    	
   	<div class="form-group">
   		<label class="col-sm-2 control-label" for="prenom">Prénom</label>
   		<div class="col-sm-10">
			<form:input path="prenom" placeholder="Prénom" required="true" class="form-control" value="${utilisateur.prenom}"/>
		</div>
	</div>
	
   	<div class="form-group">
   		<label class="col-sm-2 control-label" for="login">Login</label>
   		 <div class="col-sm-10">
			<form:input path="login" placeholder="Login" required="true" class="form-control" value="${utilisateur.login}" />
		</div>
	</div>

   	<div class="form-group">
  		<label class="col-sm-2 control-label" for="password">Mot de passe</label>
  		 <div class="col-sm-10">
			<input type="password" id="password" name="password1" class="form-control" required="true" />
		</div>
	</div>
	
    <div class="form-group">
    	<label class="col-sm-2 control-label" for="password2">Confirmez le mot de passe</label>
    	<div class="col-sm-10">
			<input type="password" id="password2" name="password2" class="form-control" required="true" />
		</div>
    </div>
</form:form>  
